[prev in list] [next in list] [prev in thread] [next in thread] 

List:       barracuda
Subject:    Barracuda:  embedding pages
From:       barracuda () enhydra ! org (=?iso-8859-1?Q?=22R=FCfli=2C_Heinz=22?=)
Date:       2001-11-19 10:49:41
[Download RAW message or body]

Hi Christian,
 
now my iterative model works even when it is included from another model. 
Thanks a lot.
 
Heinz
 
-----Original Message-----
From: Christian Cryder [mailto:christianc@granitepeaks.com]
Sent: Freitag, 16. November 2001 17:24
To: barracuda@enhydra.org
Subject: RE: Barracuda: embedding pages


Hi Heinz,
 
A while back we simplified the constructors, removing the view parameters
since in most cases this will not be set (especially if you are using the
BTemplate component). There was fairly lengthy discussion of this on the
list, so you should be able to find details in the archives. Generally, all
it means for you is that you need to:
 
a) modify your constructors to not pass in a view paramter
b) if the component does need a view, than manually do a setView()
 
Should be a pretty simple change. Sorry for the inconvenience, but everyone
felt the change was worth it...
 
Christian
------------------------------------------------
Christian Cryder [christianc@granitepeaks.com]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org <http://barracuda.enhydra.org/> 
------------------------------------------------
        "What a great time to be a Geek" 

-----Original Message-----
From: barracuda-admin@enhydra.org [mailto:barracuda-admin@enhydra.org]On
Behalf Of Rüfli, Heinz
Sent: Friday, November 16, 2001 2:08 AM
To: barracuda@enhydra.org
Subject: RE: Barracuda: embedding pages


Hi Christian,
I tried it at home - where I have the control over the firewall - and it
worked ! 
Now I have another problem.
 
I get constructor not found errors for - it seams all - component classes.
With 1.0 the same code was ok.
Do you have any idea what causes the problem ?
 
Heinz
 
For example  bselect = new BSelect(dlm, dlv, vc); from the method below does
not compile.
I import org.enhydra.barracuda.core.comp.*;

  public BSelect getBSelectStr(ViewContext vc, String key, String
selectedValue, String[] values )
  {
    final String where = this.getClass().getName();
    BSelect bselect = null;
    DefaultListModel dlm = new DefaultListModel();
    DefaultView dlv = new DefaultView(vc.getTemplateNode().cloneNode(true));
 
      /*
      * Create the list model
      */
      dlm.add(new DefaultItemMap("-1",""));
      for( int i=0;i<values.length;i++)
      {
        dlm.add(new DefaultItemMap(values[i],values[i]));
      }
      /*
      * Create the component and bind it to the model and the view
      */
     bselect = new BSelect(dlm, dlv, vc);
      /*
      * Set the selected value
      */
      for (int i = 0; i<dlm.getSize();i++)
      {
        if( dlm.get(i).toString().equals(selectedValue) )
          bselect.setSelectedIndex(i);
      }
 
    SimpleTrace.printlnMiddle(where,"index is : " +
bselect.getSelectedIndex());
    return bselect;
  }

 
 
-----Original Message-----
From: Christian Cryder [mailto:christianc@enhydra.org]
Sent: Donnerstag, 15. November 2001 20:00
To: Rüfli, Heinz
Subject: RE: Barracuda: embedding pages


I think it is in fact a firewall issue; I know I can get stuff from cvs even
though I'm behind a firewall, but I have direct access to the firewall box,
so I think I open up cvs related ports (and I can't remember the specifics).
Can you email support@enhydra.org <mailto:support@enhydra.org>  regarding
this issue?
 
Christian
------------------------------------------------
Christian Cryder [christianc@granitepeaks.com]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org <http://barracuda.enhydra.org/> 
------------------------------------------------
        "What a great time to be a Geek" 

-----Original Message-----
From: Rüfli, Heinz [mailto:heinz.ruefli@swx.com]
Sent: Thursday, November 15, 2001 9:32 AM
To: 'Christian Cryder'
Subject: RE: Barracuda: embedding pages


Hi Christian,
 
I've installed Tortoise cvs and get the following error when I'm trying to
checkout.
 

In Z:\shr01\OpenSource\enhydra\barracuda\cvs: cvs -q -z6 checkout Barracuda
cvs [checkout aborted]: connect to www.enhydra.org:2401
<http://www.enhydra.org:2401/>  failed: Connection timed out
 
Error, CVS operation failed

 
I am behind a firewall, might this be the problem ?
 
Cheers
Heinz
 
 
-----Original Message-----
From: Christian Cryder [mailto:christianc@enhydra.org]
Sent: Freitag, 26. Oktober 2001 17:03
To: Rüfli, Heinz
Subject: RE: Barracuda: embedding pages


Hi Heinz,
 
If you go to http://barracuda.enhydra.org/software/downloads/
<http://barracuda.enhydra.org/software/downloads/>  ou can download 1.0.2
which I created yesterday. CVS actually isn't that hard to install on
windows...if you use Tortoise cvs; there's detailed instructions here:
http://barracuda.enhydra.org/Barracuda/docs/cvs.html
<http://barracuda.enhydra.org/Barracuda/docs/cvs.html>  
 
Let me know if your problem continues after upgrading to this new build.
Christian

------------------------------------------------
Christian Cryder [christianc@enhydra.org]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org <http://barracuda.enhydra.org/> 
------------------------------------------------
        "What a great time to be a Geek"



[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=077023708-19112001>Hi 
Christian,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=077023708-19112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=077023708-19112001>now my 
iterative model works even when it is included from another model. 
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=077023708-19112001>Thanks 
a lot.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=077023708-19112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=077023708-19112001>Heinz</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=077023708-19112001></SPAN></FONT>&nbsp;</DIV>
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Christian Cryder 
[mailto:christianc@granitepeaks.com]<BR><B>Sent:</B> Freitag, 16. November 2001 
17:24<BR><B>To:</B> barracuda@enhydra.org<BR><B>Subject:</B> RE: Barracuda: 
embedding pages<BR><BR></FONT></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial size=2>Hi 
Heinz,</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial size=2>A 
while back we simplified the constructors, removing the view parameters since in 
most cases this will not be set (especially if you are using the BTemplate 
component). There was fairly lengthy discussion of this on the list, so you 
should be able to find details in the archives. Generally, all it means for you 
is that you need to:</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial size=2>a) 
modify your constructors to not pass in a view paramter</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial size=2>b) if 
the component does need a view, than manually do a setView()</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial size=2>Should 
be a pretty simple change. Sorry for the inconvenience, but everyone felt the 
change was worth it...</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=661142116-16112001><FONT color=#0000ff face=Arial 
size=2>Christian</FONT></SPAN></DIV>
<DIV><SPAN class=661142116-16112001></SPAN><FONT 
size=2>------------------------------------------------<BR>Christian Cryder 
[christianc@granitepeaks.com]<BR>Barracuda - MVC Component Framework for 
Webapps<BR><A href="http://barracuda.enhydra.org/" 
target=_blank>http://barracuda.enhydra.org</A><BR>------------------------------------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 "What a great time to be a Geek" </FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; \
PADDING-LEFT: 5px">  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT \
face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> \
barracuda-admin@enhydra.org   [mailto:barracuda-admin@enhydra.org]<B>On Behalf Of \
</B>Rüfli,   Heinz<BR><B>Sent:</B> Friday, November 16, 2001 2:08 AM<BR><B>To:</B> 
  barracuda@enhydra.org<BR><B>Subject:</B> RE: Barracuda: embedding 
  pages<BR><BR></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>Hi 
  Christian,</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>I 
  tried it at home - where I have the control over the firewall - and it worked 
  ! </SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>Now 
  I have another problem.</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>I 
  get</SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001> c</SPAN></FONT><FONT color=#0000ff face=Arial 
  size=2><SPAN class=025495108-16112001>onstructor not found errors for - it 
  seams all - component classes. With 1.0 the same code was 
  ok.</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>Do 
  you have any idea what causes the problem ?</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001>Heinz</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>For 
  example&nbsp; bselect = new BSelect(dlm, dlv, vc); from the method below does 
  not compile.</SPAN></FONT></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=025495108-16112001>I 
  import&nbsp;</SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001>org.enhydra.barracuda.core.comp.*;<BR></DIV></SPAN></FONT>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001>&nbsp;&nbsp;public BSelect getBSelectStr(ViewContext 
  vc, String key, String selectedValue, String[] values )<BR>&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp; final String where = 
  this.getClass().getName();<BR>&nbsp;&nbsp;&nbsp; BSelect bselect = 
  null;<BR>&nbsp;&nbsp;&nbsp; DefaultListModel dlm = new 
  DefaultListModel();<BR>&nbsp;&nbsp;&nbsp; DefaultView dlv = new 
  DefaultView(vc.getTemplateNode().cloneNode(true));</SPAN></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Create the list 
  model<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  dlm.add(new DefaultItemMap("-1",""));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for( 
  int i=0;i&lt;values.length;i++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlm.add(new 
  DefaultItemMap(values[i],values[i]));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * 
  Create the component and bind it to the model and the 
  view<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp;&nbsp; bselect 
  = new BSelect(dlm, dlv, vc);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Set the selected 
  value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  for (int i = 0; i&lt;dlm.getSize();i++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( 
  dlm.get(i).toString().equals(selectedValue) 
  )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  bselect.setSelectedIndex(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }</SPAN></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
  class=025495108-16112001>&nbsp;&nbsp;&nbsp; 
  SimpleTrace.printlnMiddle(where,"index is : " + 
  bselect.getSelectedIndex());<BR>&nbsp;&nbsp;&nbsp; return bselect;<BR>&nbsp;
  }<BR></SPAN></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Christian Cryder 
  [mailto:christianc@enhydra.org]<BR><B>Sent:</B> Donnerstag, 15. November 2001 
  20:00<BR><B>To:</B> Rüfli, Heinz<BR><B>Subject:</B> RE: Barracuda: embedding 
  pages<BR><BR></FONT></DIV>
  <DIV><SPAN class=288095918-15112001><FONT color=#0000ff face=Arial size=2>I 
  think it is in fact a firewall issue; I know I can get stuff from cvs even 
  though I'm behind a firewall, but I have direct access to the firewall box, so 
  I think I open up cvs related ports (and I can't remember the specifics). Can 
  you email <A href="mailto:support@enhydra.org">support@enhydra.org</A> 
  regarding this issue?</FONT></SPAN></DIV>
  <DIV><SPAN class=288095918-15112001><FONT color=#0000ff face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=288095918-15112001><FONT color=#0000ff face=Arial 
  size=2>Christian</FONT></SPAN></DIV>
  <DIV><SPAN class=288095918-15112001></SPAN><FONT 
  size=2>------------------------------------------------<BR>Christian Cryder 
  [christianc@granitepeaks.com]<BR>Barracuda - MVC Component Framework for 
  Webapps<BR><A href="http://barracuda.enhydra.org/" 
  target=_blank>http://barracuda.enhydra.org</A><BR>------------------------------------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  "What a great time to be a Geek" </FONT></DIV>
  <BLOCKQUOTE dir=ltr 
  style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; \
PADDING-LEFT: 5px">  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT \
face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> Rüfli, Heinz 
    [mailto:heinz.ruefli@swx.com]<BR><B>Sent:</B> Thursday, November 15, 2001 
    9:32 AM<BR><B>To:</B> 'Christian Cryder'<BR><B>Subject:</B> RE: Barracuda: 
    embedding pages<BR><BR></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=990252916-15112001>Hi 
    Christian,</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001>I've installed Tortoise cvs and get the following 
    error when I'm trying to checkout.</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=990252916-15112001>
    <DIV><FONT color=#0000ff face=Arial size=2>In 
    Z:\shr01\OpenSource\enhydra\barracuda\cvs: cvs -q -z6 checkout 
    Barracuda<BR>cvs [checkout aborted]: connect to <A 
    href="http://www.enhydra.org:2401/">www.enhydra.org:2401</A> failed: 
    Connection timed out</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2>Error, CVS operation 
    failed<BR></FONT></DIV></SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=990252916-15112001>I 
    am behind a firewall, might this be the problem ?</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001>Cheers</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001>Heinz</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=990252916-15112001></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT color=#0000ff face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Christian Cryder 
    [mailto:christianc@enhydra.org]<BR><B>Sent:</B> Freitag, 26. Oktober 2001 
    17:03<BR><B>To:</B> Rüfli, Heinz<BR><B>Subject:</B> RE: Barracuda: embedding 
    pages<BR><BR></FONT></DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial size=2>Hi 
    Heinz,</FONT></SPAN></DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial size=2>If 
    you go to <A 
    href="http://barracuda.enhydra.org/software/downloads/">http://barracuda.enhydra.org/software/downloads/</A>&nbsp;ou \
  can download 1.0.2 which I created yesterday. CVS actually isn't that hard 
    to install on windows...if you use Tortoise cvs; there's detailed 
    instructions here: <A 
    href="http://barracuda.enhydra.org/Barracuda/docs/cvs.html">http://barracuda.enhydra.org/Barracuda/docs/cvs.html</A> \
  </FONT></SPAN></DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial 
    size=2>Let me know if your problem continues after upgrading to this new 
    build.</FONT></SPAN></DIV>
    <DIV><SPAN class=751014614-26102001><FONT color=#0000ff face=Arial 
    size=2>Christian</FONT></SPAN></DIV>
    <P><FONT 
    size=2>------------------------------------------------<BR>Christian Cryder 
    [christianc@enhydra.org]<BR>Barracuda - MVC Component Framework for 
    Webapps<BR><A href="http://barracuda.enhydra.org/" 
    target=_blank>http://barracuda.enhydra.org</A><BR>------------------------------------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  "What a great time to be a 
Geek"<BR></FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic