Re: Beaneditform Troubles

2012-07-17 Thread loshmeey
Thnx Alex! im gonna give it a go in the mornning!

Best Regards,
Milos D.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Beaneditform-Troubles-tp5714511p5714529.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Beaneditform Troubles

2012-07-17 Thread loshmeey
hm thank you for the quick reply Alex, i have the same line of code, and for
some reason it is not working! Here is the code so if anyone has any clue
what the problem might be...

@Basic(optional = false)
@Validate("required")
@Column(name = "KNJIGA_NAPOMENA")
private String knjigaNapomena;

@Basic(optional = false)
@Validate("required")
@Column(name = "KNJIGA_GOD_IZDANJA")
@Temporal(TemporalType.DATE)
private Date knjigaGodIzdanja;

 
@JoinColumn(name = "OBLAST_ID", referencedColumnName = "OBLAST_ID")
@ManyToOne
private Autor oblastId;

@JoinColumn(name = "JEZIK_ID", referencedColumnName = "JAZIK_ID")
@ManyToOne
private Jezik jezikId;

. the rest of the entity class

and the tml :










... the rest of the form. This select object is a custom component i use for
lists, and it used to work just fine until i added @ManyToOne notations, and
changed the variable types to Autor/Jezik. If anyone has any ideas, thank
you in advance!

Best Regards,
Milos D.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Beaneditform-Troubles-tp5714511p5714520.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Beaneditform Troubles

2012-07-17 Thread loshmeey
Hello, i have problems with beaneditform and i dont know where else to turn
so, here i am.

So as i said, i have a bean edit form that is using an entity class a
source. In that entity class i have some fields marked up with @OneToMany
notations. I want to override those fields in the form using .
And i did so, but the form is not showing those fields, and some other
fields that i have overridden with  are working fine. Has
anyone got any ideas? I can provide code if it may help.

Best Regards,
Milos D.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Beaneditform-Troubles-tp5714511.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Uploading Images!

2012-04-15 Thread loshmeey
It works! :), thank you very much!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5641747.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Uploading Images!

2012-04-14 Thread loshmeey
right, sorry i forgot to mention the important part! It happens when i click
submit..i still didn`t figure out why it pops up or how ti fix it :/

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5641284.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Uploading Images!

2012-04-14 Thread loshmeey
soo, i added the code you gave me for example, and i still keep getting file
not found exception. I made folder images in project folder and it still
keeps popping up..so, can anyone help me out with this ? :)

--
Best Regards
Milos

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5640721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Uploading Images!

2012-04-14 Thread loshmeey
@bhorvat

hehe actually im was at fon, finished first 2 years, and then transferred to
fit! and i am really happy with that decision :D..anyway to the problem im
having. I got the upload to work but.. 

this is the form..pretty simple






and java

public Object onSuccessFromForm(){

File copied = new File("/testUpload/" + file.getFileName());

file.write(copied);
return index;
}

so my problem is:
if i leave the code like this i get file not found exception, but if i
remove "/testUpload/", it works just fine. So where is the file? And, i am
using glassfish that comes with netbeans to test the app, should i make
/testUpload/ folder maybe on localhost in order to save it there?

--
Best Regards
Milos

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5640344.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Uploading Images!

2012-04-13 Thread loshmeey
Thank you very much for the quick response! 

Im gonna try to work my way trough the link you sent me and if i get
stuck... ill come back with more detailed questions!

Thanks again!

@George Christman

nop, not using Jquery for now, but will look into it! Thank you!

--
Best regards
Milos
 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5639106.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Uploading Images!

2012-04-13 Thread loshmeey
Hello everyone, this is my first post soo i kinda feel i need to introduce
myself :). Im 22, studying IT from Serbia. I had tapestry in one of the
classes on colleague and i really started to like it and i still like it
very much! I mastered all the "basics" (forms, beaneditforms, grids, zones,
working with hibernate to save data to db, and extract it from db etc..) but
now i`ve really hit a wall. 

I want to upload a picture from a .tml page to web server, and on the other
.tml page display that picture...nothing really fancy, but i am really
struggling on doing it! Sooo... pleease help me!! I hope you can  provide
some example code to :)


---
Best Regards
Milos 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Uploading-Images-tp5639019p5639019.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org