Baazi Reddy

Greenhorn
+ Follow
since Jun 28, 2012
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Baazi Reddy

Hello,

Iam working on e-commerce web application with Jsf and Primefaces. In my project we are using <p:commandButton> and <h:commandButton for submiting the forms .

This buttons are not working on first click sometimes after Tomcat Server restart.

Can any one of you give any idea about this issue.

Thanks in advance,
Gopal reddy.
4 years ago
JSF
Hello Tim Holloway ,

First Iam very thankful for your quick response.

Can you please tell me deatily to prevent user to open too many tabs after Login with Jsf. I have to implement this avoiding multiple tabs opening in my application since we have to provide security to end user.

Thanks,
Baazi.
4 years ago
JSF
My requirement is to prevent user from opening too many views after login with jsf2.0.

And I used org.apache.NumberOfViewsInSession configuration in web.xml,but it is not working.

My code is

can any one of you solve this problem.

Thanks in advance,
Baazi
4 years ago
JSF
Iam uplaoding files in one form using jsf. after chossing all files to upload, when user clicks submit button all uplaoded files should display in another jsf form.
4 years ago
JSF
My requirment is Iam displaying employee details in datatable. on top there is menu button "Add Employee". when user clicks add employee Dailog box opens where he can enter employee deatils and submit it. If there is a validation errors Dailog box sholudn't close after button click.


And code is :

<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="layout.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:p="http://primefaces.org/ui">
<ui:define name="head">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<f:metadata>
<f:event type="preRenderView" listener="#{loginBean.validuser}" />
</f:metadata>


</ui:define>

<ui:define name="body">
<center>

<h:form id="form">

<!-- <p:growl id="growl" showDetail="true" />
-->
<p:dataTable id="dataTable" var="country"
value="#{countryBean.countriesList}"
emptyMessage="No data found with given Data"
filteredValue="#{countryBean.filter}" style="font-size: 12px;"
resizableColumns="true" liveResize="true">

<!-- <p:ajax event="colResize" update=":form:growl"
listener="#{countryBean.onResize}" />
-->
<f:facet name="header">
<p:column>
Click the button to add new Country :
</p:column>
<p:column>

<p:commandButton styleClass="addbutton" value="Add Country"
onclick="dlg3.show();" type="button" />

<p:dialog id="dialog" widgetVar="dlg3" showEffect="puff">
<p:panel header="Add Country Details">
<p:messages id="msgs" />
<h:panelGrid columns="3">

<h:outputLabel for="Code" value="CountryCode :*"
style="font-size: 12px;" />
<p:inputText id="Code" style="font-size: 12px;"
value="#{countryBean.countryMaster.countryCode}"
required="true" label="Code">
<f:validateLength minimum="2" />
</p:inputText>
<p:message for="Code" display="icon" />

<h:outputLabel for="NameAr" value="CountryNameAr :*"
style="font-size: 12px;" />
<p:inputText id="NameAr" style="font-size: 12px;"
value="#{countryBean.countryMaster.countryNameAr}"
required="true" label="NameAr">
<f:validateLength minimum="2" />
</p:inputText>
<p:message for="NameAr" display="icon" />

<h:outputLabel for="NameEn" value="CountryNameEn :*"
style="font-size: 12px;" />
<p:inputText id="NameEn" style="font-size: 12px;"
value="#{countryBean.countryMaster.countryNameEn}"
required="true" label="NameEn">
<f:validateLength minimum="2" />
<p:message for="NameEn" display="icon" />
</p:inputText>
<!-- ** -->
<h:commandButton value="Add" update="display" process="someID"
action="#{countryBean.add}"

oncomplete="if (#{facesContext.validationFailed}) dlg3.show()"
style="font-size: 12px;" />
</h:panelGrid>
</p:panel>
</p:dialog>

</p:column>
</f:facet>

<p:column filterBy="#{country.countryCode}"
sortBy="#{country.countryCode}" headerText="CountryCode"
style="font-size: 12px;">
<h:outputText value="#{country.countryCode}" />
</p:column>

<p:column filterBy="#{country.countryNameAr}"
sortBy="#{country.countryNameAr}" headerText="CountryNameAr"
style="font-size: 12px;">
<h:outputText value="#{country.countryNameAr}"
style="font-size: 12px;" />
</p:column>

<p:column filterBy="#{country.countryNameEn}"
sortBy="#{country.countryNameEn}" headerText="CountryNameEn"
style="font-size: 12px;">
<h:outputText value="#{country.countryNameEn}"
style="font-size: 12px;" id="test" />


</p:column>
</p:dataTable>
</h:form>

</center>
</ui:define>

</ui:composition>




If any one of you provide solution with code for this problem very helpful to me.

Thanks In Adavance.

Baazi.
4 years ago
JSF
how to hide the form using jsf primefaces

My requirment is Iam able get some data from DB and display it to user in tabalur format.
In header part there will be button ,when user clicks it another hidden form will be opened where he can update data and save it db. I want to get this hidden form in same page when he clicks button.

Can any one of you give me idea about it.

Thanks in advance.

Baazi.
4 years ago
JSF
Hai This gopal Iam developing View and Search module for technology forum.

In the view page I want to display number of threads are there for view, by some query Iam able to get records to resultset object.
Using resultset.next and adding those records to Dto object using setter methods, dto is added to list and list to transferred to next layer..
so I want to dispaly no of records present in resultset object and last() and getRow() methods but unable to add this Dto object.

Can any solve this problem for me Iam very thankful to them.
how to display daabase data in jsp as soon as application is deployed


Iam working on this using Listener class concept but unable to get it , can anyone help me...........
5 years ago
Xml
What is Xml
What is Session Factory?