a phil

Greenhorn
+ Follow
since Nov 11, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by a phil

a4j tags will do the ajax magic: refer to this: Ajax4Jsf
12 years ago
JSF
I am trying to test run a simple JSF set up project that basically is a form containing input fields.
The environment:
RAD 6, WAS 6.1, JSF 1.2.

Whats going wrong??? gosh !! I am terribly missing something I guess:

The set up:
1. Configured web.xml with JSF like this:


2. Created a page called MemberSearch.jsp
3. Deployed the web-project on the WAS 6.1.
4. Started the server and application in auto-deploy.
5. Now simply invoking the page using the URL: http://localhost:9080/JsfProj/MemberSearch.faces

All I am getting is a 404 Error page. Any HEADS UP ? How do I see my page atleast rendered.

FYI: My faces page looks like this:





ALSO FYI:

When I start the application on the WAS 6.1 server, I am seeing the following errors on the console:




And there is no message or no exception thrown back on the Console when I invoke the MemberSearch faces page.

Please help me atleast See the page rendered friends !! I appreciate your kind help here !! Any ideas will be appreciated friends !! Please help

Thanks

Aron
12 years ago
JSF
Hi,

Am building a jsp that has a 2 sections. The first section has a html table that wraps couple JSF tags. Only <h:inputText> and <h:outputText> and <h:commandButton> tags are used within this html table.

Now, the second section has a little different. The same html table structure is used as the first section, but the JSF tags wrapped within it are: <h:selectOneRadio>, <h:inputText> and <h:commandButton> tags.

The problem:
When the page renders, the two sections are supposed to have proper alignments. When the pages is rendered, the radioButton renders a table that is not allowing the second section to align in the same way as the first section. Could anyone help me with this ? I need to align the 2 sections along the same way.

Any thoughts/ideas is much appreciated.

Thanks

Phil
12 years ago
JSF
Well folks,

I think you can configure navigation not only through face-config.xml, but also you can use the FacesContext.getCurrentInstance().getApplication().getNavigationHangler()... this will give you the current NavigationHandler object. Using this object, you can play with the navigation. (Please refer to the jsf docs as the above sequence may not be the right one).

Please hollar if you got better solutions... Gud luck !
12 years ago
JSF
Hi ketan,

that was a simple and sweet trick. i liked it.
12 years ago
JSF
Hi yasmin,

I see that you are trying to access a server-side dynamic value as a javascript's input value. Practically I dont think this is possible because of the fact that you are trying to dynamically update (this happen on the fly through jsp engine) a static field value after the page is processed by the jsp engine.

I see that you can solve your problem in 2 ways:

1). You can declare a hidden variable on you jsp and through javascript get the value of this hidden field and update your javascript's value with the hidden field value. Please remember to update this hidden variable through you backing bean.

2). You can still use the above suggested mechanism by actually updating the javascript variable with the same scriptlet you have currently. You would again need to assign this scriptlet value to some hidden variable and inturn capture this hidden field's value before rendering and assign to the javascript variable.

Please hollar if you found a better solution. Gud luck!
12 years ago
JSF
Hi,

I need to include one jsf page into another jsf page. (Both are JSF pages)

Requirement:
say page2 has to be included in page1. page1 and page2 are supposed to use same backing bean to update their page values. In fact both page1 and page2 are supposed to be as one single page. Since this is creating a huge monster page.. i am planning to move out some stuff and create a separate page called 'page2' and want to include this inside page1 and during rendering both page values are updated from single backing bean

Will a simple <@include file="page2.jsf"> work in page1. I am aware that to do this we need to place the contents of page2 in <f:subView></f:subView> tags. But am not sure if this works for a single backing bean. Will this update both the pages the included page and the including page with the values from the same singlebacking bean during rendering ??

My other concern is how do i configure page2 on the face-config.xml ?

Am really new to this JSF include idea.. How do I go about... Please hollar again if my requirement is not clear.. I can elucidate well. a quick reply is really appreciated.
12 years ago
JSF
Hi,

I need to include one jsf page into another jsf page. (Both are JSF pages)

Requirement:
say page2 has to be included in page1. page1 and page2 are supposed to use same backing bean to update their page values. In fact both page1 and page2 are supposed to be as one single page. Since this is creating a huge monster page.. i am planning to move out some stuff and create a separate page called 'page2' and want to include this inside page1 and during rendering both page values are updated from single backing bean

Will a simple <@include file="page2.jsf"> work in page1. I am aware that to do this we need to place the contents of page2 in <f:subView></f:subView> tags. But am not sure if this works for a single backing bean. Will this update both the pages the included page and the including page with the values from the same singlebacking bean during rendering ??

My other concern is how do i configure page2 on the face-config.xml ?

Am really new to this JSF include idea.. How do I go about... Please hollar again if my requirement is not clear.. I can elucidate well. a quick reply is really appreciated.
12 years ago
JSF
Hi,

interrupt the rendering of the value of the inputtextArea - you can do this using a javascript function by getting hold of the id ( handler of the tag on the form), and then manipulate the value attribute of the inputTextArea value. You can also achieve the new - line feature as desired using a javascript array. First get the value of the inputTextArea and then create a js array of strings that you want them to render... and then display this array structure as the value... you can do this by updating the value using str1, and javascript's new line and repeating this until last string is updating on the value attribute and then finally render the value. Please remember you need to do all this before the form is rendered... (i think you need to use a hidden variable on the form that holds the value tht the inputtextarea must be updated with.. you can update hidden var from the backing bean... )..hope this helped.. gud luck !
12 years ago
JSF