Andre Froes

Greenhorn
+ Follow
since Oct 13, 2010
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 Andre Froes

Ahh, now I understood what you were saying, indeed, that worked, but the file still comming corrupted, if I set it to a fileoutputstream as I did before specifying a path in local, it work perfectly. Now I have to find what may be breaking it.

btw, thanks a lot for the attention that you are providing me
10 years ago
This is the scenario, I am using lowagie librarie to generate pdf, for that, I have to pass an outputstream to it, but I dont want to save the file in the server machine, I want to provide it for instant download, that is why I am trying to convert the outputstream to a byte array. This is the workaround along with my try:



with that kind of file.toString I am receiving the file broken, I want to know if there is a better way.
10 years ago
One of my attempts is to store an outputstream in it, but i dont know how, I know how to make the inverse of it.
10 years ago
Hello everyone, how can I convert an OutputStream to byte[]? Im trying to find this information but it is being very hard. I found how to get from others to it, but not from it to others.

Thanks
10 years ago
Hello everyone!

I`m having trouble in doing a recursive method to get item from database, I don`t really understand how to recursive get the values.

This is the structure for table group:
- id int not null auto-integer primary key
- title varchar(200)
- subtitle varchar(200)
- parent_id int foreign key references group(id)

those are the fields, but how can I get the items recursively?

- group 1
- group 1.1
- group 1.1.1
- group 1.2
...
If I could I would, but the only thing that i have is primefaces, that is good enough, but somethings are still to come :D . Well, i managed doing the input type="file", not perfeclty, but it fits at the moment, but now, my commandButton is not performing the action that it is binded to, this is annoying me hehe. It is not even acessing the method.
10 years ago
JSF
Hello!

How can I add an inputFile or input type="file" from a managedBean? I managed creating every uicomponent that i needed using javax.faces.component from J2EE6, that is the version that I must work, even though it has been created in the J2EE7, I cant upgrade yet.

So, has anyone done this or have any tips? Html native or faces native submit file would fit to me, but I'm not managing to find how to.

10 years ago
JSF
Hello, thanks for the reply. I know it is not easily done, I have a solution (kind of) that is not based in jsf, but that is not something that i would intend to do, just in last case, i mean, it is to create a form in jquery in the backing bean and then paste it to a given id in the view. To get the values in the backing bean or to send it there, i would bind a value to a hidden element and then get from managed beam from a simple submit click by javascript.

But as I said, that is in last case, if i find a better solution in jsf i will go with it. I'm doing a hard search here for a how to in jsf but there aren't many :D, that bad lol
Thanks anyway. ;]
10 years ago
JSF
Hello everyone! I`ve been searching about this for some time now, I have some database specifications of components to be created in a view, and I have to create it from backing bean to the view.

1. Customer can create a form template in my tool (that is done), it can create select box, select list, radio button, insert image and insert textbox/textarea. When the costumer saves this template, I am saving the specifications of this form, such as type, position order, length, etc.
2. Now the other costumers must fill this form, but it will be loaded according to this saved template, this is where I am loosing myself, I can programatically create them in the view from the view, but i don`t know how to create it directly from the managed bean, since I'll have to loop through these elements and insert it into groups (accordions).

Any help/tips/links will be very appreciated :D
10 years ago
JSF
Let me add a scenario here to make more understandable what I'm aiming for. I am going to have several tables (studying purpose), such as person, cars, fruits, etc., and I'll eventually add some info there, but I don't want to create a view for each one, I'll pass thru URL param the kind of object that I want to add. Ex.:

http://localhost:8085/MyStudy/persist-new-object.jsf?objKind=person

based on objKind, I'll access the corresponding bean and load all fields within it regarding its rules, length(), etc,.

I already did that implementation that you showed me, but it is no for the same purpose that I'm after, it would be an n-1 relation. I'm just aiming to generate the form and then persist. My brain is boiling already with it
11 years ago
JSF
Hello everyone,

Is it possible to create a form based on my object dynamically?

Example:



Based on that object, I want to create a form that will read it and create the form with a repetition structure, ui:repeat for example:


Can that be done? I managed to do it with scriplet and annotation based on Generic, but in JSF2 I'm not managing to do so.
11 years ago
JSF
Hello everyone, I'm with a terrible doubt here, I need to implement a connection pool with tomcat 6 + JPA without hibernate. I can use other things such as c3p0 or dbcp or any that comes out to make the pool but what I'm restricted to use is hibernate. I've searched a big part of google results but none broght me any result. I tried the tomcat pool, but tomcat cannot hold the amount of request. I'm currently making my applications in toplink + jsp, because the company doesn't let us use faces to. Is there any kind of pool that I can make to use with Toplink?
try this and see what happens please:

http://189.27.3.135:9005/FRB

on top menu, you'll see the option "O Esporte"
the only 2 links working are "Historia" and "Barcos"

check to see if it appears to you
13 years ago
JSF
Hey everyone, I'm getting a message here : Warning: This page calls for XML namespace declared with prefix p but no taglibrary exists for that namespace
same goes for html tag <h2>

how can I remove this or get this regular?
is there anyhow to use regular html taglib without getting this xml message?
13 years ago
JSF
I'm not managing to make a refresh in my datatable by commandbutton:


in this last dialog, when i click the commandbutton, it makes what I ask it for, everything is working perfect, but the datatable dtHistorico is not updating, it updates only when i trigger the button "Atualizar Histórico", then I can see the last entry there.

can soneone help me with this issue?
13 years ago
JSF