Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF 1.2 - inputText unable to re render with Vietnamies characters  RSS feed

 
muhammad waqas khalid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18704
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
muhammad waqas khalid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18704
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!