Gautam Ry

Ranch Hand
+ Follow
since Dec 30, 2008
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gautam Ry

Hi
I am stuck.
could you help me ?

regards
roy
12 years ago
JSF
Hi
I have a JSF from containing around 10 controls(input, select etc.) .
Now I need to display an error message in case any of the mandatory control has validation error.
Message format would be like
"Please,Complete the fields marked with yellow!" The message I need to show in a div tag with Yelow background.

Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.

My code is below.
[color=red][/color]

(JSF1.2,Rich Faces 3.3.0,Facelets )

And a Phase Listener from
http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
This Phase listener is to border the control with Yellow in case validation fail.

Now my Query
1) How can I show a single message for all fields as I marked above in case of validation failure?
2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.
User can move from one control to other using tab. That time proper validation message is appearing.
but the border of the control is not changing to yellow.
What's the correcion can be made to meet that requirement too.


regards
Roy






12 years ago
JSF
Hi
I am very new to JSF1.2. I need to configure JSF1.2 in the following environment.

1) IDE : Eclipse hilos 3.6
2) server : JBOSS 5.0 GA.

I ended up googling but did n't get any needful like that.

So, please guide me how i can proceed(what are the jar file needs to be selected from IDE)

I need to develop something using facelets.

Regards
Gautam

12 years ago
JSF
Hi
I am stuck totally,
I need your suggestion.

Regards
Gautam
13 years ago
JSF
Hi ,

I have a parent window(JSP file) that has a input render class (to generate random number of text fields) and command button.
On click of the command button, i need to open a modal window which has another Output render class.
I need to pass the entered values in the text fields to the Output render class which is in the child/modal window.

My code is below :

Parent window (ContactCenterOutbound.jsp)
[color=blue][/color]

hx:contactCenterProcessInput section generates random number of text fields as below:-

<label for='csext_id1' title='' id ='REFERENCE No' name='csext_id1'/ >REFERENCE No</label>
<input type='text' title = 'null' id='csext_id1' name='csext_id1' value="" size="15" maxlength="250" onmousedown='autoResize(this)' onmousemove='autoResize_onmousemove()' onmouseup='autoResize_onmouseup()' />


the Backing bean for (ccSearchAndCaseProcessMB)



My Child Window(ContactCenterSearchResult.jsp)

[color=blue][/color]

The Problem is that data is not passing to Out put render class and functionality implementation is not possible with out those values.
I need your suggestion.

Regards
Gautam
13 years ago
JSF

Thanks for your response.

My code is below
JSP


Backing Bean



Regards
Gautam
13 years ago
JSF
Hi,

I have a JSP a page that have two JSF form(<h:form>)
The 1st one has some input fields and a submit button
The 2nd one has some drop down.


When I tried to submit the 1st form, the 2nd one also gets submitted along with it and vice versa.
I was thinking to use <iframe> for each from. But, the <iframe> concept is not in JSF.

What I can do to avoid this performance issue?
Please, suggest me.

Regards
Gautam

13 years ago
JSF

Thanks for your brilliant response.
It's working as per my requirement.

Regards
Gautam
13 years ago
JSF
Any update ?
I am really stuck. I need your help.

Regards
Gautam
13 years ago
JSF
Hi

I am trying to display buttons that are generating dynamically from a HashMap.
And another requirement is that I need to display two buttons in one row and so on.
I am able to display buttons but these are coming one after another i.e. one row contains one button.
My code is as follows:

JSF

<h:form id="contactcenterPr_form">
<h:dataTable border='1' value="#{ccSearchAndCaseProcessMB.processForOutBound}" var='var1' id="datatable1">

<h:column>
<h:commandButton type="button" id="btn" value="#{var1.value}"
onclick="javascript:changeValue1('#{var1.key}');" styleClass="subBtn" />
</h:column>
</h:dataTable>

</h:form>


Backing Bean

public List getProcessForOutBound() {

List prListOutbound = null;
HashMap obj=new HashMap();
obj.put("1","process1");
obj.put("2","process2");
obj.put("3","process3");
prListOutbound =new java.util.ArrayList(obj);
return prListOutbound;
}

Regards
Gautam
13 years ago
JSF
Hi
I am new in JSF. I need to display the Map value in JSF button. My code is below.

JSF code
==============
<h:form id="contactcenterPr_form">
<h:dataTable border='1' value="#{ccSearchAndCaseProcessMB.processForOutBound}" var='var1' id="datatable1">
<h:column>

<h:commandButton type="button" id="hdngo1"
onclick="javascript:changeValue1('#{var1.key}');"
value=""#{var1.value}" styleClass="subBtn" />
</h:column>
</h:form>

MBean
==========
public class ContCenterSearchAndCaseProcessMBean {
public Map getProcessForOutBound(){
Map map=new HashMap();
map.put("22675","Claims");
map.put("12345","Renewal");
map.put("67890","Query");
map.put("27875","Process");
return map;
}
}

So, as per the above code I should be able to see four buttons as 'Claims' ,'Renewal','Query','Process' .
And I need to pass the key as a parameter in JavaScript method.

But , I am unable to see any thing.

Please, help me.

Regards
Gautam




13 years ago
JSF
Hi Lester,

many many thanks for the useful responce.
I need some more details on your post to go ahead.

a) what is OCR package ? can i download it from internet ?
b) what is Tesseract. ?

Could you give me some examples on the issue?

Thanks again for the reply.

Regards
Gautam
13 years ago
I need to read a Text(Account Number) from a image file (.tif).
I tried the following approach :

try{
File newFile=new File("C:\\Image\\9R6-CCI\\09082010\\K08E091209FT_8021.tif");
BufferedImage buffImage=ImageIO.read(newFile);
ByteArrayOutputStream os= new ByteArrayOutputStream();
ImageIO.write(buffImage,IMAGE_TYPE,os);
byte []data=os.toByteArray();
String imageString=new BASE64Encoder().encode(data);
}catch (Exception e){}


But it was throwing problem. After googling, I found that ImageIO has some limitation to read an editable image.
Then, I tried the following approach :

try{File newFile=new File("C:\\Image\\9R6-CCI\\09082010\\K08E091209FT_8033.tif");
byte[] fileData = new byte[ (int)newFile.length()];
InputStream inStream = new FileInputStream( newFile);
inStream.read(fileData);
inStream.close();
String tempFileData = new String(fileData);
String imageString=new BASE64Encoder().encode(fileData);
}catch (Exception e){}


But i did n't get the desired out put . The Out put is as below.
xTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUxTFMUx

Please, help me to address the issue.

Thanks and Regards
Gautam

13 years ago
Hi
I am working on a product that mainly tracks BPO daily activities.
Product based on 3 tiers Architecture (JSF,EJB2.0 and MSSQL).
There are many teams across the globe using this Application.
And their shift timings differ.

Say team A, the shift timing starts @ 2:30P.M (configurable) . Depending upon
the work load, they might need to log-on before 2:30P.M. In that case, that period
will be considered as over time.
My requirement is to display an message at 2:30 P.M. indicating that
their normal shift-timing starts by now.


That's the challenging part. In my understanding, I need to apply somekind of
server pushing concept.
Any better idea or approach?

Regards
Gautam
14 years ago
JSF
Hi
How can I developed Customized Alert in place of default JavaScript Alert?
The default JavaScript Alert does not look good as the background color and title of it
cann't be changed.

Regards
Gautam