Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread James Cicenia
ah! thanks! I think too much javascript these few days are blinding these tired 
eyes.

thanks again.

On Jun 7, 2010, at 7:38 PM, Chuck Hill wrote:

> 
> On Jun 7, 2010, at 5:33 PM, James Cicenia wrote:
> 
>> 
>> I believe you, however
>> 
>> 
>> Then is it possible that the Ajax stuff is messing with the object upon 
>> selection?
>> I have done popups... dozens and dozens over the years. However, with all the
>> new AJAX, I can't necessarily read the tea leaves of unexpected ec results.
>> 
>> Here is the pattern of setting it.. Where is the context wrong?
>> 
>> 
>> public void setSelectedAlertSector(AlertSector pSector)
>> {
>> currentMasterAlert.setAlertGroupRelationship((AlertSector)EOUtilities.localInstanceOfObject(currentMasterAlert.editingContext(),
>>  pSector));
>> }
> 
> That is not wrong, THIS is wrong:
> 
> list = session.ratings;
> 
> 
> The objects in session.ratings are not in the EC used on this page.  They 
> need to be.  You need to make a local copy in the correct EC.
> 
> 
> Chuck
> 
> 
> 
>> On Jun 7, 2010, at 6:08 PM, Chuck Hill wrote:
>> 
>>> 
>>> On Jun 7, 2010, at 3:47 PM, James Cicenia wrote:
>>> 
 But then why would I get the "first" object set?
>>> 
>>> Who cares why?  If they are not in the same EC, it won't work.
>>> 
>>> Chuck
>>> 
 And I am actually doing this:
 
 public Rating selectedRating()
{
return currentMaster.rating();
}
 
 
 public void setSelectedRating(Rating pRating)
{

 currentMasterAlert.setRatingRelationship((Rating)EOUtilities.localInstanceOfObject(ec(),
  pRating));
System.out.println(pRating.name());
   }
 
 YET in my javascript:
 
 function createNameEntry(){
var inAddMode = "";
$('NameEntry').value = "";
var typeIndex  = $('typeSelect').selectedIndex;
var sectorIndex  = $('sectorSelect').selectedIndex;
var ratingIndex  = $('ratingSelect').selectedIndex;

if($('typeSelect').selectedIndex > 0){
$('NameEntry').value += 
 $('typeSelect').options[typeIndex].text+" - ";
}
if($('sectorSelect').selectedIndex > 0){
$('NameEntry').value += 
 $('sectorSelect').options[sectorIndex].text+" - ";
}
if($('ratingSelect').selectedIndex > 0){
$('NameEntry').value += 
 $('ratingSelect').options[ratingIndex].text;
}
 }
 
 The NameEntry field gets set correctly and then upon submit.. it gets the 
 "first" object of the list always.
 
 
 On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:
 
> session.ratings and selectedRating are not in the same EC
> 
> 
> On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:
> 
>> The problem, no matter what I pick, it always selects the first non-null 
>> entry in the dropdown.
>> 
>> As evidenced by my printout.
>> 
>> YET -
>> 
>> In the javascript is does put the correct rating.name in the text field!
>> Just the object is getting somehow mis-referenced.
>> 
>> public void setSelectedRating(Rating pRating)
>> {
>>  System.out.println(pRating.name());
>> }
>> RatingPopUp : WOPopUpButton{
>> id = "ratingSelect";
>> list = session.ratings;
>> item = aRating;
>> name="CA_type";
>> class="MB_focusable MB_field width100";
>> selection = selectedRating;
>> displayString = aRating.name;
>> noSelectionString = "-- select rating --";
>> 
>> onChange = "javascript:createNameEntry()";
>> }
>> 
>> Thanks
>> James
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net
>>> 
>>> -- 
>>> Chuck Hill Senior Consultant / VP Development
>>> 
>>> Practical WebObjects - for developers who want to increase their overall 
>>> knowledge of WebObj

Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread Chuck Hill


On Jun 7, 2010, at 5:33 PM, James Cicenia wrote:



I believe you, however


Then is it possible that the Ajax stuff is messing with the object  
upon selection?
I have done popups... dozens and dozens over the years. However,  
with all the
new AJAX, I can't necessarily read the tea leaves of unexpected ec  
results.


Here is the pattern of setting it.. Where is the context wrong?


public void setSelectedAlertSector(AlertSector pSector)
{
currentMasterAlert 
.setAlertGroupRelationship 
((AlertSector 
)EOUtilities 
.localInstanceOfObject(currentMasterAlert.editingContext(), pSector));

}


That is not wrong, THIS is wrong:


list = session.ratings;



The objects in session.ratings are not in the EC used on this page.   
They need to be.  You need to make a local copy in the correct EC.



Chuck




On Jun 7, 2010, at 6:08 PM, Chuck Hill wrote:



On Jun 7, 2010, at 3:47 PM, James Cicenia wrote:


But then why would I get the "first" object set?


Who cares why?  If they are not in the same EC, it won't work.

Chuck


And I am actually doing this:

public Rating selectedRating()
{
return currentMaster.rating();
}


public void setSelectedRating(Rating pRating)
{
		 
currentMasterAlert 
.setRatingRelationship 
((Rating)EOUtilities.localInstanceOfObject(ec(), pRating));

System.out.println(pRating.name());
   }

YET in my javascript:

function createNameEntry(){
var inAddMode = "";
$('NameEntry').value = "";
var typeIndex  = $('typeSelect').selectedIndex;
var sectorIndex  = $('sectorSelect').selectedIndex;
var ratingIndex  = $('ratingSelect').selectedIndex;

if($('typeSelect').selectedIndex > 0){
		$('NameEntry').value += $('typeSelect').options[typeIndex].text 
+" - ";

}
if($('sectorSelect').selectedIndex > 0){
		$('NameEntry').value += $ 
('sectorSelect').options[sectorIndex].text+" - ";

}
if($('ratingSelect').selectedIndex > 0){
		$('NameEntry').value += $ 
('ratingSelect').options[ratingIndex].text;

}
}

The NameEntry field gets set correctly and then upon submit.. it  
gets the "first" object of the list always.



On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:


session.ratings and selectedRating are not in the same EC


On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:

The problem, no matter what I pick, it always selects the first  
non-null entry in the dropdown.


As evidenced by my printout.

YET -

In the javascript is does put the correct rating.name in the  
text field!

Just the object is getting somehow mis-referenced.

public void setSelectedRating(Rating pRating)
{
System.out.println(pRating.name());
}
RatingPopUp : WOPopUpButton{
id = "ratingSelect";
list = session.ratings;
item = aRating;
name="CA_type";
class="MB_focusable MB_field width100";
selection = selectedRating;
displayString = aRating.name;
noSelectionString = "-- select rating --";

onChange = "javascript:createNameEntry()";
}

Thanks
James
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the 

Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread James Cicenia

I believe you, however


Then is it possible that the Ajax stuff is messing with the object upon 
selection?
I have done popups... dozens and dozens over the years. However, with all the
new AJAX, I can't necessarily read the tea leaves of unexpected ec results.

Here is the pattern of setting it.. Where is the context wrong?


public void setSelectedAlertSector(AlertSector pSector)
{
currentMasterAlert.setAlertGroupRelationship((AlertSector)EOUtilities.localInstanceOfObject(currentMasterAlert.editingContext(),
 pSector));
}





On Jun 7, 2010, at 6:08 PM, Chuck Hill wrote:

> 
> On Jun 7, 2010, at 3:47 PM, James Cicenia wrote:
> 
>> But then why would I get the "first" object set?
> 
> Who cares why?  If they are not in the same EC, it won't work.
> 
> Chuck
> 
>> And I am actually doing this:
>> 
>> public Rating selectedRating()
>>  {
>>  return currentMaster.rating();
>>  }
>> 
>> 
>> public void setSelectedRating(Rating pRating)
>>  {
>>  
>> currentMasterAlert.setRatingRelationship((Rating)EOUtilities.localInstanceOfObject(ec(),
>>  pRating));
>>  System.out.println(pRating.name());
>>}
>> 
>> YET in my javascript:
>> 
>> function createNameEntry(){
>>  var inAddMode = "";
>>  $('NameEntry').value = "";
>>  var typeIndex  = $('typeSelect').selectedIndex;
>>  var sectorIndex  = $('sectorSelect').selectedIndex;
>>  var ratingIndex  = $('ratingSelect').selectedIndex;
>>  
>>  if($('typeSelect').selectedIndex > 0){
>>  $('NameEntry').value += 
>> $('typeSelect').options[typeIndex].text+" - ";
>>  }
>>  if($('sectorSelect').selectedIndex > 0){
>>  $('NameEntry').value += 
>> $('sectorSelect').options[sectorIndex].text+" - ";
>>  }
>>  if($('ratingSelect').selectedIndex > 0){
>>  $('NameEntry').value += 
>> $('ratingSelect').options[ratingIndex].text;
>>  }
>> }
>> 
>> The NameEntry field gets set correctly and then upon submit.. it gets the 
>> "first" object of the list always.
>> 
>> 
>> On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:
>> 
>>> session.ratings and selectedRating are not in the same EC
>>> 
>>> 
>>> On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:
>>> 
 The problem, no matter what I pick, it always selects the first non-null 
 entry in the dropdown.
 
 As evidenced by my printout.
 
 YET -
 
 In the javascript is does put the correct rating.name in the text field!
 Just the object is getting somehow mis-referenced.
 
 public void setSelectedRating(Rating pRating)
 {
System.out.println(pRating.name());
 }
 RatingPopUp : WOPopUpButton{
 id = "ratingSelect";
 list = session.ratings;
 item = aRating;
 name="CA_type";
 class="MB_focusable MB_field width100";
 selection = selectedRating;
 displayString = aRating.name;
 noSelectionString = "-- select rating --";
 
 onChange = "javascript:createNameEntry()";
 }
 
 Thanks
 James
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net
>>> 
>>> -- 
>>> Chuck Hill Senior Consultant / VP Development
>>> 
>>> Practical WebObjects - for developers who want to increase their overall 
>>> knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/products/practical_webobjects
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread Chuck Hill


On Jun 7, 2010, at 3:47 PM, James Cicenia wrote:


But then why would I get the "first" object set?


Who cares why?  If they are not in the same EC, it won't work.

Chuck


And I am actually doing this:

public Rating selectedRating()
{
return currentMaster.rating();
}


public void setSelectedRating(Rating pRating)
{
		 
currentMasterAlert 
.setRatingRelationship 
((Rating)EOUtilities.localInstanceOfObject(ec(), pRating));

System.out.println(pRating.name());
}

YET in my javascript:

function createNameEntry(){
var inAddMode = "";
$('NameEntry').value = "";
var typeIndex  = $('typeSelect').selectedIndex;
var sectorIndex  = $('sectorSelect').selectedIndex;
var ratingIndex  = $('ratingSelect').selectedIndex;

if($('typeSelect').selectedIndex > 0){
		$('NameEntry').value += $('typeSelect').options[typeIndex].text+"  
- ";

}
if($('sectorSelect').selectedIndex > 0){
		$('NameEntry').value += $('sectorSelect').options[sectorIndex].text 
+" - ";

}
if($('ratingSelect').selectedIndex > 0){
$('NameEntry').value += 
$('ratingSelect').options[ratingIndex].text;
}
}

The NameEntry field gets set correctly and then upon submit.. it  
gets the "first" object of the list always.



On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:


session.ratings and selectedRating are not in the same EC


On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:

The problem, no matter what I pick, it always selects the first  
non-null entry in the dropdown.


As evidenced by my printout.

YET -

In the javascript is does put the correct rating.name in the text  
field!

Just the object is getting somehow mis-referenced.

public void setSelectedRating(Rating pRating)
{
System.out.println(pRating.name());
}
RatingPopUp : WOPopUpButton{
 id = "ratingSelect";
 list = session.ratings;
 item = aRating;
 name="CA_type";
 class="MB_focusable MB_field width100";
 selection = selectedRating;
 displayString = aRating.name;
 noSelectionString = "-- select rating --";

 onChange = "javascript:createNameEntry()";
}

Thanks
James
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread James Cicenia
But then why would I get the "first" object set?
And I am actually doing this:

public Rating selectedRating()
{
return currentMaster.rating();
}


public void setSelectedRating(Rating pRating)
{

currentMasterAlert.setRatingRelationship((Rating)EOUtilities.localInstanceOfObject(ec(),
 pRating));
System.out.println(pRating.name());
}

YET in my javascript:

function createNameEntry(){
var inAddMode = "";
$('NameEntry').value = "";
var typeIndex  = $('typeSelect').selectedIndex;
var sectorIndex  = $('sectorSelect').selectedIndex; 
var ratingIndex  = $('ratingSelect').selectedIndex; 

if($('typeSelect').selectedIndex > 0){
$('NameEntry').value += 
$('typeSelect').options[typeIndex].text+" - ";
}
if($('sectorSelect').selectedIndex > 0){
$('NameEntry').value += 
$('sectorSelect').options[sectorIndex].text+" - ";
}
if($('ratingSelect').selectedIndex > 0){
$('NameEntry').value += 
$('ratingSelect').options[ratingIndex].text;
}
}

The NameEntry field gets set correctly and then upon submit.. it gets the 
"first" object of the list always.


On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:

> session.ratings and selectedRating are not in the same EC
> 
> 
> On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:
> 
>> The problem, no matter what I pick, it always selects the first non-null 
>> entry in the dropdown.
>> 
>> As evidenced by my printout.
>> 
>> YET -
>> 
>> In the javascript is does put the correct rating.name in the text field!
>> Just the object is getting somehow mis-referenced.
>> 
>> public void setSelectedRating(Rating pRating)
>> {
>>  System.out.println(pRating.name());
>> }
>> RatingPopUp : WOPopUpButton{
>>  id = "ratingSelect";
>>  list = session.ratings;
>>  item = aRating;
>>  name="CA_type";
>>  class="MB_focusable MB_field width100";
>>  selection = selectedRating;
>>  displayString = aRating.name;
>>  noSelectionString = "-- select rating --";
>> 
>>  onChange = "javascript:createNameEntry()";
>> }
>> 
>> Thanks
>> James
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Extra set of eyes on this WOPopUp.

2010-06-07 Thread Chuck Hill

session.ratings and selectedRating are not in the same EC


On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:

The problem, no matter what I pick, it always selects the first non- 
null entry in the dropdown.


As evidenced by my printout.

YET -

In the javascript is does put the correct rating.name in the text  
field!

Just the object is getting somehow mis-referenced.

public void setSelectedRating(Rating pRating)
{
System.out.println(pRating.name());
}
RatingPopUp : WOPopUpButton{
  id = "ratingSelect";
  list = session.ratings;
  item = aRating;
  name="CA_type";
  class="MB_focusable MB_field width100";
  selection = selectedRating;
  displayString = aRating.name;
  noSelectionString = "-- select rating --";

  onChange = "javascript:createAlertNameEntry()";
}

Thanks
James
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Extra set of eyes on this WOPopUp.

2010-06-07 Thread James Cicenia
The problem, no matter what I pick, it always selects the first non-null entry 
in the dropdown.

As evidenced by my printout.

YET -

In the javascript is does put the correct rating.name in the text field!
Just the object is getting somehow mis-referenced.

public void setSelectedRating(Rating pRating)
{
System.out.println(pRating.name());
}
RatingPopUp : WOPopUpButton{
  id = "ratingSelect";
  list = session.ratings;
  item = aRating;
  name="CA_type";
  class="MB_focusable MB_field width100";
  selection = selectedRating;
  displayString = aRating.name;
  noSelectionString = "-- select rating --";
  
  onChange = "javascript:createAlertNameEntry()";
}

Thanks
James ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Chuck Hill

From the looks of it,  others were not so lucky.


On Jun 7, 2010, at 10:36 AM, Anjo Krank wrote:


Well, I DID manage to get out of it again, but only barely.

Cheers, Anjo



Am 07.06.2010 um 19:23 schrieb Chuck Hill:

For American greasy spoon classics (and very late night bacon and  
eggs), the Pinecrest is where I head.  Anjo thinks the bathroom is  
a little scary.


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Anjo Krank
Well, I DID manage to get out of it again, but only barely.

Cheers, Anjo



Am 07.06.2010 um 19:23 schrieb Chuck Hill:

> For American greasy spoon classics (and very late night bacon and eggs), the 
> Pinecrest is where I head.  Anjo thinks the bathroom is a little scary.

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Chuck Hill
Across from the Kebab house and down towards market is a small  
Taqueria (El Castillo, I think) with good (read "real") Mexican food.   
I highly recommend their tacos.  I'd not attempt both the Kebab House  
and this place in the same day unless you have a cast iron digestive  
system.  Just sayin...  ;-)


There is a large Thai community around SF, so the Thai food tends to  
be good.  Chinese food, not so much.


For American greasy spoon classics (and very late night bacon and  
eggs), the Pinecrest is where I head.  Anjo thinks the bathroom is a  
little scary.



On Jun 7, 2010, at 7:34 AM, John Huss wrote:

Any recommended restaurants for those of us at WWDC?  What was the  
Indian place?


John
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread George Domurot

I believe that you're thinking Punjab. Can't remember address.

On Jun 7, 2010, at 7:34 AM, John Huss  wrote:

Any recommended restaurants for those of us at WWDC?  What was the  
Indian place?


John
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/george%40boxofficetickets.com

This email sent to geo...@boxofficetickets.com

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Lon Varscsak
And if you're feeling adventurous, there's a crawfish place that's awesome:

http://maps.google.com/maps/place?client=safari&rls=en&oe=UTF-8&um=1&ie=UTF-8&q=crawfish+san+francisco&fb=1&gl=us&hq=crawfish&hnear=San+Francisco,+CA&cid=9315026063188604779



On Mon, Jun 7, 2010 at 7:59 AM, Miguel Arroz  wrote:
> Hi!
>
>  If you like sushi, there's a nice place called Jodima-Ann, near union 
> square: .
>
>  It's a small place, but pretty good. It has the best Miso soup I have tasted 
> anywhere in the world! Too bad I can't be there this year... :(
>
>  Yours
>
> Miguel Arroz
>
> On 2010/06/07, at 15:34, John Huss wrote:
>
>> Any recommended restaurants for those of us at WWDC?  What was the Indian 
>> place?
>>
>> John
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com
>>
>> This email sent to ar...@guiamac.com
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/varscsak%40smarthealth.com
>
> This email sent to varsc...@smarthealth.com
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Miguel Arroz
Hi!

  If you like sushi, there's a nice place called Jodima-Ann, near union square: 
.

  It's a small place, but pretty good. It has the best Miso soup I have tasted 
anywhere in the world! Too bad I can't be there this year... :(

  Yours

Miguel Arroz

On 2010/06/07, at 15:34, John Huss wrote:

> Any recommended restaurants for those of us at WWDC?  What was the Indian 
> place?
> 
> John
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com
> 
> This email sent to ar...@guiamac.com




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: [OT] Restaurant recommendations at WWDC?

2010-06-07 Thread Kieran Kelleher
It is called Punjab Kabab House. It is on this shared SF map:

http://maps.google.com/maps/ms?ie=UTF&msa=0&msid=
101574324074450583712.000469ab395a9c996dff1

On Jun 7, 2010, at 10:34 AM, John Huss wrote:

> Any recommended restaurants for those of us at WWDC?  What was the Indian 
> place?
> 
> John
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com
> 
> This email sent to kieran_li...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[OT] Restaurant recommendations at WWDC?

2010-06-07 Thread John Huss
Any recommended restaurants for those of us at WWDC?  What was the  
Indian place?


John
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Oracle searching with accented characters

2010-06-07 Thread Pascal Robert
You're sure than a plain old fetch spec is not working? Our Oracle DB is full 
of French chars and EOF queries with accented chars works just fine without 
altering the session settings or passing params to the JDBC driver.

> Hi Guys,
> 
> I am currently in a battle with searching the db and accented characters.
> 
> We have some data having accented characters like pépé
> 
> I need pépé to be included in the result set when I query select * from 
> persons where firstname like '%pe%'
> 
> So I need to set the following on oracle
> 
> alter session set NLS_SORT=GENERIC_M_AI;
> alter session set nls_comp=LINGUISTIC;
> 
> This works but I do not know how to set this with webobjects or if it is even 
> advised. I wonder how you guys handle this using WO?
> 
> Can anyone shed some light on my dark day please?
> 
> Thanks,
> Amiel
> 
> -- 
> socket error: unable to connect to 127.0.0.1
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to prob...@macti.ca

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Oracle searching with accented characters

2010-06-07 Thread Andrew Lindesay
Hello Amiel;

I needed to do some connection initialisation with Oracle late last year and 
was able to successfully implement the "EOAdaptorContext.Delegate" interface 
and then set my delegate as the default delegate;


EOAdaptorContext.setDefaultDelegate(MyAdaptorContextDelegate.singleton());

In my implementation of;

EOAdaptorContext.adaptorContextShouldConnect(..)

I was able to get the new connection, configure it with things I needed and 
then WO seems to use it.

Not sure where the general approach came from; API browsing, suggestion on here 
or PW -- maybe PW has something for this sort of thing?

Hopefully shedding some light on your dark day. :)

cheers.

> I am currently in a battle with searching the db and accented characters.
> We have some data having accented characters like pépé
> I need pépé to be included in the result set when I query select * from 
> persons where firstname like '%pe%'
> So I need to set the following on oracle
> alter session set NLS_SORT=GENERIC_M_AI;
> alter session set nls_comp=LINGUISTIC;
> This works but I do not know how to set this with webobjects or if it is even 
> advised. I wonder how you guys handle this using WO?
> Can anyone shed some light on my dark day please?

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Generating Pages completely from Java Code

2010-06-07 Thread Hugi Thordarson
Hi Dmitri.
The easiest way to achieve this is probably to transform your XML into html+wod 
(or html inline syntax). Then override the template() method in your 
WOComponent subclass to return a template generated dynamically from your 
html+wod.

Example:

@Override
public WOElement template() {
String htmlString = createYourHTML();
String wodString = createYourWOD();
return WOComponent.templateWithHTMLString( "app", name(), htmlString, 
wodString, NSArray.EmptyArray, 
WOApplication.application().associationFactory(), 
WOApplication.application().namespaceProvider() );
}

Cheers,
- hugi


On 7.6.2010, at 06:58, Dmitri Barosnikov wrote:

> Hi everyone,
> 
> some question here. Is it possible to generate Pages completely out of java 
> code, meaning WOD stays empty completely?
> 
> The use case is following: i got some page descriptions in xml and need to 
> build working page for this, so client can enter his data in this page. What 
> i try to do now, is to place some WOForm+WOTextField+WOSubmitButton from java 
> code directly in this page, and trying to get it work.
> 
> Somehow it does not work :( Any of you made this maybe already?
> 
> I give you some simple Example code from me so u get the idea what i try to 
> do:
> I call in the appendToResponce of a page my method where i initialize 
> elements:
> 
> private void makeMyContent(WOResponse woresponse, WOContext wocontext) {
>   if (!initialized) {
>   log.info("INIT ALL FIELDS");
>   makeHtmlBegin(woresponse, wocontext);
> 
>   // hier werden alle objecte initialisiert.
>   woresponse.appendContentString(" name=\"editForm1\">");
> 
>   NSMutableDictionary nsdictionary = new NSMutableDictionary();
>   WOAssociation association;
>   nsdictionary = new NSMutableDictionary();
>   //  association = 
> WOKeyValueAssociation.associationWithKeyPath("superString");
>   nsdictionary.takeValueForKey(association, "value");
>   //  association = 
> WOConstantValueAssociation.associationWithValue("superString");
>   nsdictionary.takeValueForKey(association, "name");
>   //  WOTextField textField = new 
> WOTextField("WOTextField", nsdictionary.immutableClone(), null);
>   textField.appendToResponse(woresponse, wocontext);
>   //  nsdictionary = new NSMutableDictionary();
>   //  association = 
> WOConstantValueAssociation.associationWithValue("onPressbutton");
>   nsdictionary.takeValueForKey(association, "name");
>   //  association = 
> WOConstantValueAssociation.associationWithValue("SUPER BUTTON");
>   nsdictionary.takeValueForKey(association, "buttonLabel");
>   //  association = 
> WOKeyValueAssociation.associationWithKeyPath("onPressbutton");
>   nsdictionary.takeValueForKey(association, "action");
>   //  WOSubmitButton submitButton = new 
> WOSubmitButton("WOSubmitButton", nsdictionary, this);
>   submitButton.appendToResponse(woresponse, wocontext);
> 
>   woresponse.appendContentString("");
> 
>   initialized = true;
> 
>   makeHtmlEnd(woresponse, wocontext);
>   }
> 
>   }
> 
> 
> Than i try to run this code and dont get it to work, meaning when i press my 
> button on the page i get completely new page back, no data will be forwarded 
> into page.
> 
> Any idea how i can begin the solution of this problem ?
> 
> Dmitri
> 
> 
> __ Hinweis von ESET Smart Security, Signaturdatenbank-Version 5177 
> (20100606) __
> 
> E-Mail wurde geprüft mit ESET Smart Security.
> 
> http://www.eset.com
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Oracle searching with accented characters

2010-06-07 Thread Amiel Montecillo
Hi Guys,

I am currently in a battle with searching the db and accented characters.

We have some data having accented characters like pépé

I need pépé to be included in the result set when I query select * from
persons where firstname like '%pe%'

So I need to set the following on oracle

alter session set NLS_SORT=GENERIC_M_AI;
alter session set nls_comp=LINGUISTIC;

This works but I do not know how to set this with webobjects or if it is
even advised. I wonder how you guys handle this using WO?

Can anyone shed some light on my dark day please?

Thanks,
Amiel

-- 
socket error: unable to connect to 127.0.0.1
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com