veli akcakaya

Greenhorn
+ Follow
since Dec 19, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by veli akcakaya

Hi,
i'm trying to use <f:param in ><rich:panelMenuItem. It works fine in Firefox and Chrome but it dont work in Internet Explorer 6.



i can't get "action" and "show_type" parameters value to target page with IE 6.

Is there any suggestion.

Regards,

veli akcakaya
http://www.BT-tr.net
16 years ago
JSF
Hi Olivier,

i try your suggestion. my code is;

<h:panelGrid columns="2">
<h:column>
<f:facet name="header">
<h:outputText value="Thead1"/>
</f:facet>
<h:outputText value="row1" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Thead2"/>
</f:facet>
<h:outputText value="row2" />
</h:column>
</h:panelGrid>

and result of this code ;

<table>
<tbody>
<tr>
<td>row1</td>
<td>row2</td>
</tr>
</tbody>
</table>

it is not include <thead>.

Do you have any else suggestion.

Thanks,
16 years ago
JSF
Hi,
i'm trying to make a table including <thead> row via <h:panelGrid. But i couldnt code for thead columns. I tried to use <f:facet, but it not same as my want.

<f:facet name="header">
<h:outputText value="header"/>
</f:facet>


How can i make this table by <h:panelGrid
<table>
<thead>
<tr>
<th align="left">Thead1</th>
<th align="left">Thead2</th>
<th align="right">Thead3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 - Col 1</td>
<td>Row 1 - Col 2</td>
<td align="right">Row 1 - Col 3</td>
</tr>
<tr>
<td>Row 2 - Col 1</td>
<td>Row 2 - Col 2</td>
<td align="right">Row 2 - Col 3</td>
</tr>
</tbody>
</table>

Have a nice day.
16 years ago
JSF
Hi,
thanks everybody. i solved encoding problem with native2ascii.

Have a nice day.
16 years ago
JSF
Hi,
i try to use properties files for Localization. But i have problem some Turkish charecter.

- my properties file is UTF-8
- my jsp file like this (it's a summary)
personal_opt=Kişisel Ayarlar

- and my jsf page;

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<f:view>
<f:loadBundle var="msg" basename="net.lms.messages.adminMessages" />
<h:outputText value="#{msg.personal_opt}"/>
</f:view>

but i cant show some character (�,�,ğ,ş,Ş,ı,İ etc.) How can i solve this problem.

Thanks.

veli ak�akaya
http://www.BT-tr.net
16 years ago
JSF
Hi,
so thanks for your reply. I solved my problem with your help.

Have a nice day.

veli akcakaya
http://www.BT-tr.net
16 years ago
JSF
Hi, i'm new in JSF.

i have design a registration form. I want to check that are passwords equal. i wrote a custom validation method for this reason in my bean class. it is;

public void passwordValidate(FacesContext arg0, UIComponent arg1, Object val) throws ValidatorException {
System.out.println("this.getPassword2()=" + val.toString());
System.out.println("this.getPassword()=" + this.getPassword());
if(!this.getPassword2().equals(this.getPassword())) {
throw new ValidatorException(new FacesMessage("Passwords don't match"));
}
}

And i use it in the form this type;

<a4j:form id="registerForm">
....
<h:outputText value="#{msg.password}" />
<h:inputSecret id="RegPasswd" value="#{regForm.password}" required="true" autocomplete="false" />
<rich:message for="RegPasswd"/>

<h:outputText value="#{msg.password_again}" />
<h:inputSecret id="RegPasswd2" value="#{regForm.password2}" size="14" maxlength="16" required="true" validator="#{regForm.passwordValidate}">
<a4j:support ajaxSingle="true" event="onblur"></a4j:support>
</h:inputSecret>
<rich:message for="RegPasswd2"></rich:message>
...
<a4j:commandButton value="#{msg.login}" action="#{regForm.doSimpleRegister}" />
</a4j:form>

But i can't get first password inputSecret value via this.getPassword() method. getPassword() is in the same Bean file. How can i get first password and check them.

Thanks,

veli akcakaya
http://www.BT-tr.net
16 years ago
JSF