Tuesday, June 05, 2007

JSF Datatable output problem

Had a hard time figuring out how to output a column data in a datatable from a List declared in the model(POJO). I thought it would be like "myAppForm.myModel.myList.myProperty" since the table has a value of "myAppForm.myModel.myList". Then there is the variable (var) "myAppVar", which you could use to access the properties in the List e.g. "myAppVar.myProperty".

Thursday, March 22, 2007

Tomcat Stopped ?

An unexpected error has been detected by Java Runtime Environmet

Problematic Frame:
V [libjvm.so+0x2e4dde]

Read a lot of Forum, found out that it was a version bug or something.
I currently have 1.6 installed. Checked that /usr/bin/java is old so I had to
remove it. Then downgraded to 1.5. It got fixed. Just wasn't sure if downgrading it
or removing the old java fixed it.

Monday, March 19, 2007

postgresql please respond

Postgres doesnt start.
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 & 
<--start postgres service (doesn't work)

keeps saying that there is another process going. Tried killing it but it doesn't exist.

Tried other commands, then found out the solution was simple. Just DELETE the postmaster.pid found inside [data] and start it again

Monday, March 05, 2007

Missing Bundle

error in jsf
f:loadbundle basename="#{payslipForm.bundleName}" Can't find bundle for base name
What went wrong?
I added the following code in my jsp file:
...

f:loadbundle var="text" basename="#{payslipForm.bundleName}"

...

edited my message properties (in this case, ApplicationResources.properties)
and added a few lines:
# -- payslipForm --
payslipForm.title=Online Payslip View
payslipForm.heading=My Payslip

What I forgot was the name for my bundle should be the same as the one I declared as my managed bean. Anyways I'm learning..

Thursday, February 01, 2007

not saving

Using JSF, setting inputText as readonly would make values unregistered so I would have to add the value again, different id, as a hidden value to save it.

Tuesday, November 14, 2006

make no mistake

After spending an hour of trying to jar my classfiles, I found out why it isn't working. Getting error "main" java.lang.NoClassDefFoundError:

"jar cvfm myjar.jar manifest.mf -C mydirectory/ ."

"/" should have been "\"

Monday, November 06, 2006

YUM MY!!!

I had a hard time setting up my YUM (FC4) because i was BEHIND a FIREWALL with AUTHENTICATION :(

Finally, after some research, I had to edit /etc/yum.conf

and added this line

[main]
proxy=http://username:password@ip_address:port
cachedir=/var/cache/yum
....
...
...
didn't work for me, so I added the environment variable "HTTP_PROXY"
e.g
HTTP_PROXY=http://username:password@ip_address:port and
export HTTP_PROXY