[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam
smithbstl
do-not-reply at jboss.com
Tue May 1 10:28:07 EDT 2007
Thanks Chris, I have it most of the way working except for a couple of issues.
1. When i use a commandLink to open the dialog, I can't get PPR to refresh the inputText on the orginal page. I keep getting this message
ERROR [STDERR] May 1, 2007 9:11:57 AM org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPRTag finish
| WARNING: No PPR-capable id found for elements of CoreInputText[UIXEditableFacesBeanImpl, id=customer_input]. This component has not written-out an id attribute.
customer_input is the inputText I wish to pass the value from the dialog back to.
Here is the relevant part of the page
<tr:inputText id="customer_input"
| value="(Empty)"
| label="Enter New Customer:"
| partialTriggers="dialog_id"/>
| <s:conversationPropagation>
| <tr:commandLink id="dialog_id"
| text="find Customer"
| action="dialog:chooseCustomer"
| useWindow="true" windowHeight="400"
| windowWidth="400" partialSubmit="true"/>
| </s:conversationPropagation>
2. When I use a tr:inputListOfValues component instead (it encapsulates all the functionality I need) the object I hand back to the page is getting its toString method called instead of correctly referencing a property of the object
| <tr:inputListOfValues returnListener="#{requestEntry.processReturn}"
| id="customer_input"
| label="Enter New Customer:"
| value="#{requestEntry.customer.userName}"
| action="dialog:chooseCustomer"/>
The userName property is not being referenced at all and instead the toString method of the customer object is being called instead. It really makes no sense. I have outputed the customer object's properties to the console during the ActionEvent of the dialog and again during ReturnListener of the calling form so I know the object is being passed correctly, its just the value property of the inputListOfValues is being weird.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042097#4042097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042097
More information about the jboss-user
mailing list