aspose file tools
The moose likes JSF and the fly likes JSF 1.2 - inputText unable to re render with Vietnamies characters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF 1.2 - inputText unable to re render with Vietnamies characters" Watch "JSF 1.2 - inputText unable to re render with Vietnamies characters" New topic
Author

JSF 1.2 - inputText unable to re render with Vietnamies characters

muhammad waqas khalid
Greenhorn

Joined: Aug 02, 2012
Posts: 2
Hi,

we are using JSF 1.2 and having issue when we are trying to load some Vietnamese characters in input text control.

when input text box is loaded for the first time with following special characters, page is getting loaded properly.


value="Phí xc nhn ki ểm toán" styleClass="vietnamese"

immediate="true" >

however when we try to refresh it using re render option when a row of data table is clicked. Page does not get refresh and cursor only shows weight mode.

var="item" value="#{productDefinitionBean.searchResultList}"
onRowMouseOver="changeRowStyle(this)"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
binding="#{productDefinitionBean.searchTable}" rows="10"
headerClass="sdt_head" footerClass="sdt_foot" rowClasses="sdt_row1"
cellpadding="0" cellspacing="0" width="100%">
actionListener="#{productDefinitionActionBean.doClickTableRow}"
reRender="invDescLocalLang1"
focus="invDescLocalLang1" />

We are already using UTF - 8 encoding.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

"weight mode" = "WAIT mode". It took me a few minutes to figure that one out.

I don't think that the VDL sample is complete enough to completely tell, but I can make some guesses:

1. immediate=true does not have anything to do with AJAX. It suppresses sending data back from a form when a submit control is clicked.

2. actionListeners don't do AJAX either. They are the less-portable version of action methods and most people use them when they should be using action methods, instead.

3. Bindings are also often used when they should not be.

Beyond that, a "WAIT" indication would usually be because a request had been made to the server but the server has not yet responded. Since HTTP does batched operations, as long as this is happening, the display will not update.


Customer surveys are for companies who didn't pay proper attention to begin with.
muhammad waqas khalid
Greenhorn

Joined: Aug 02, 2012
Posts: 2
hi,

Thanks a lot for your reply and sorry about the typo.

We are using Rich faces and following ajax control is re rendering input text component.


# <a4j:support id="productDefinitionSearchAjax1" event="onRowClick"
actionListener="#{productDefinitionActionBean.doClickTableRow}"
reRender="productPanel4"
focus="productPanel4" />

# <h:inputText size="40" maxlength="100" id="invDescLocalLang1"

value="Phí xc nhn ki ểm toán" styleClass="vietnamese"


immediate="true" >

</h:inputText>

As per your advice I have checked, from the back end response is being generated and send to the browser. Even I tried to debug it using Firebug, browser is receiving response.

Its just that when we click the row of the Data table that contains Vietnamese characters, page does not load properly and browser shows WAIT mode.

However when we click the row that have English characters, page is loading with latest data in no time.

Any further advice?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

Try a different web client. If Firebug says the response came back, but the page isn't updating, either you aren't refreshing properly or the browser isn't handling the refresh operation properly.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSF 1.2 - inputText unable to re render with Vietnamies characters
 
Similar Threads
Input Text in Data Tables and Validation Errors
getCurrentValue() returning an old value! a4j and JSF 1.2. Help needed ASAP!
JSF scalability and performance issues... please help... important
JSF and HTML
jsf binding and component rendering problem